{extend name="public:base" /}
{block name="head"}
<link href="__PUBLIC__/view_res/mobile/css/wshop_company_center.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/lib/weui.min.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/view_res/mobile/css/uc.css" type="text/css" rel="Stylesheet" />
<style>
	.uc-section span{
		text-align: center;
	}
</style>
{/block} 
{block name="header"}
{include file="public/top-nav" /}
{/block}

{block name="content"}

<div class="comspreadstat clearfix" style="position:relative">
	<span class="spread-item" style="color: #555;font-size: 16px;width: 100%;margin: 5px 0">交易品认购数（枚）<b>{$user_info.ticket|default='0'}</b></span>
	
</div>

<div class="uc-section" onclick="location.href = '{:url("MyTicket/usertf")}';">
<i style=""></i><b></b><span>交易品转让</span></div>
<div class="uc-section" onclick="location.href = '{:url("MyTicket/wd")}';">
<i style=""></i><b></b><span>交易品兑换</span></div>


<header class="Thead">票兑换记录</header>
<form style="position:relative" action="{:url('MyTicket/index')}" id="login-wrap" method="get">
	<div class="data_d">
		开始时间
		<div style="" class="data_t">
			<div class="gs-text" style="width: 100px;">
				<input type="text" name="start" id="date2" value="{if condition= '$start eq null'}{:date('Y-m-d',time())}{else}{$start}{/if}" data-options="{'type':'YYYY-MM-DD','beginYear':2010,'endYear':2088}" style="width:100px;height:19px;">
			</div>
		</div>
	</div>
	<div class="data_d">
		结束时间
		<div style="" class="data_t">
			<div class="gs-text" style="width: 100px;">
				<input type="text" name="end" id="date3" value="{if condition= '$end eq null'}{:date('Y-m-d',time())}{else}{$end}{/if}" data-options="{'type':'YYYY-MM-DD','beginYear':2010,'endYear':2088}" style="width:100px;height:19px;">
			</div>
		</div>
	</div>
	<input class="sous" id="reg-btn" type="submit" value="搜索" style="position: absolute; bottom:0.5%;right: 25%;width: 45px;text-align: center;height: 25px;    border-radius: 5px;color: #fff;box-shadow: 1px 1px 2px #907777; background: #b95f5f;">
</form>
<div id="ulist">            
{volist name="list" id="p" empty="$empty"}            
    <section class="ulist clearfix">
		<div>
			<span class="ulist_p">{:date('Y-m-d',$p.create_time)}</span>
			<span class="ulist_data" style="padding:0 8px;display: block;">
				申请枚数：{$p.num}<br>
				兑换总额：{:floatval($p.money)}<br>
				奖励宝豆：{:round($p.money*0.8*5)}<br>
				奖励吉豆：{:round($p.money*0.2)}<br>
			</span>
		</div>
    </section>
{/volist}
</div>
<div style="text-align: right;padding:2% 3%;">
	数据总数:{$list->total()}条
	{$page}
</div>

<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="__PUBLIC__/view_res/mobile/js/jquery_date.js"></script>
<script>
	$.date('#date2');
	$.date('#date3');

</script>


{/block}

